package com.exer1.mapper;

import com.exer1.pojo.Dormitory;

import java.util.List;

/**
 * @InterfaceName DormitoryMapper
 * @Description TODO
 * @Author Kx
 * @Date 2025/4/23 20:53
 * @Version 1.0
 */
public interface DormitoryMapper {
    /**
     * @author: kx
     * @date: 2025/4/23 20:54
     * @param dormitory : 宿舍信息
     * @description: 添加宿舍信息
    */
    void insertDormitory(Dormitory dormitory);

    /**
     * @author: kx
     * @date: 2025/4/23 23:53
     * @param dormitory : 需要修改的宿舍信息
     * @description: 修改宿舍信息
    */
    void updateDormitory(Dormitory dormitory);

    /**
     * @author: kx
     * @date: 2025/4/24 0:10
     * @param dormitoryId : 需要删除的编号
     * @description: 删除宿舍信息
    */
    void deleteDormitory(int dormitoryId);

    /**
     * @author: kx
     * @date: 2025/4/24 0:16
     * @return java.util.List<com.exer1.pojo.Dormitory>
     * @description: 查询所有宿舍信息
    */
    List<Dormitory> findALLDormitory();

    /**
     * @author: kx
     * @date: 2025/4/24 10:47
     * @param dormitoryList : 宿舍信息集合
     * @description: 批量添加多条宿舍信息
    */
    void batchInsert(List<Dormitory> dormitoryList);

    /**
     * @author: kx
     * @date: 2025/4/24 10:48
     * @param dormitoryId : 宿舍编号集合
     * @description: 批量删除多条宿舍信息
    */
    void batchDelete(List<Integer> dormitoryId);
}
